<body class="double-diagonal">
<!-- Preloader Starts -->
<div class="preloader" id="preloader" >
    <div class="logopreloader">
        <img src="<?php echo Yii::app()->theme->baseUrl; ?>/style/img/logo-black.png" alt="logo-black">
    </div>
    <div class="loader" id="loader"></div>
</div>
<!-- Preloader Ends -->
<!-- Page Wrapper Starts -->
<div class="wrapper">
    <!-- Header Starts -->
    <header id="header" class="header">
        <div class="header-inner">
            <!-- Navbar Starts -->
            <nav class="navbar navbar-expand-lg p-0" id="singlepage-nav">
                <!-- Logo Starts -->
                <div class="logo">
                    <a data-toggle="collapse" data-target=".navbar-collapse.show"
                       class="navbar-brand link-menu scroll-to-target" href="#mainslider">
                        <!-- Logo White Starts -->
                        <img id="logo-light" class="logo-light"
                             src="<?php echo Yii::app()->theme->baseUrl; ?><?php echo $this->config['webinfo-logo-white']; ?>"
                             alt="<?php echo $this->config['webinfo-webname']; ?>"/>
                        <!-- Logo White Ends -->
                        <!-- Logo Black Ends -->
                        <img id="logo-dark" class="logo-dark"
                             src="<?php echo Yii::app()->theme->baseUrl; ?><?php echo $this->config['webinfo-logo-black']; ?>"
                             alt="<?php echo $this->config['webinfo-webname']; ?>"/>
                        <!-- Logo Black Ends -->
                    </a>
                </div>
                <!-- Logo Ends -->
                <!-- Hamburger Icon Starts -->
                <button class="navbar-toggler p-0" type="button" data-toggle="collapse"
                        data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
                        aria-expanded="false" aria-label="Toggle navigation">
						<span id="icon-toggler">
						  <span></span>
						  <span></span>
						  <span></span>
						  <span></span>
						</span>
                </button>
                <!-- Hamburger Icon Ends -->
                <!-- Navigation Menu Starts -->
                <div class="collapse navbar-collapse nav-menu" id="navbarSupportedContent">
                    <ul class="nav-menu-inner ml-auto">
                        <?php
                        $navgations = $this->getNavgation();
                        foreach ($navgations as $item) {
                            $navgation = $item['navgation'];
                            $meta = $item['meta'];
                            ?>
                            <li><a data-toggle="collapse" data-target=".navbar-collapse.show" class="link-menu"
                                   href="<?php echo $meta['link_address']; ?>"><i
                                            class="<?php echo $navgation['navgation_class']; ?>"></i> <?php echo $navgation['navgation_text']; ?>
                                </a></li>
                            <?php
                        }
                        ?>
                    </ul>
                </div>
                <!-- Navigation Menu Ends -->
            </nav>
            <!-- Navbar Ends -->
        </div>
    </header>
    <!-- Header Ends -->
    <!-- Main Slider Section Starts -->
    <section class="mainslider" id="mainslider">
        <article class="content">
            <div class="rev_slider_wrapper fullscreen-container" data-alias="creative-frontpage"
                 style="background-color:transparent;padding:0px;">
                <!-- START REVOLUTION SLIDER -->
                <div id="rev_slider" class="rev_slider fullscreenbanner" style="display:none;" data-version="5.3.0">
                    <ul>
                        <?php
                        $banners = $this->getPostByCategory(12);
                        $i = 0;
                        foreach ($banners as $banner) {
                            $i++;
                            ?>
                            <!-- SLIDE  -->
                            <li data-index="rs-<?php echo $i; ?>" data-transition="slidevertical"
                                data-slotamount="default"
                                data-hideafterloop="0" data-hideslideonmobile="off" data-easein="default"
                                data-easeout="default" data-masterspeed="default" data-rotate="0"
                                data-fstransition="fade"
                                data-fsmasterspeed="1500" data-fsslotamount="7" data-saveperformance="off"
                                data-title="We are Salimo" data-param1="" data-param2="" data-param3="" data-param4=""
                                data-param5="" data-param6="" data-param7="" data-param8="" data-param9=""
                                data-param10=""
                                data-description="">
                                <!-- MAIN IMAGE -->
                                <img src="<?php echo $banner['meta']['imagePath']; ?>"
                                     title="<?php echo $banner['post']['title']; ?>"
                                     alt="" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat"
                                     data-bgparallax="6" class="rev-slidebg" data-no-retina>
                                <!-- LAYERS -->
                            </li>
                            <?php
                        }
                        ?>

                    </ul>

                    <div class="tp-bannertimer tp-bottom" style="visibility: hidden !important;"></div>
                </div>
                <!-- END REVOLUTION SLIDER -->
            </div>
        </article>
    </section>
    <!-- Main Slider Section Ends -->
    <!-- About Section Starts -->
    <section id="about" class="about">
        <!-- Container Starts -->
        <div class="container">
            <!-- Main Heading Starts -->
            <div class="text-center top-text">
                <h1><span>关于</span> 我们</h1>
                <h4>了解我们</h4>
            </div>
            <!-- Main Heading Ends -->
            <!-- Divider Starts -->
            <div class="divider text-center">
                <span class="outer-line"></span>
                <span class="fa fa-user" aria-hidden="true"></span>
                <span class="outer-line"></span>
            </div>
            <!-- Divider Ends -->
            <!-- About Content Starts -->
            <div class="row about-content">
                <div class="col-sm-12 col-md-12 col-lg-6 about-left-side">
                    <h3 class="title-about"><?php echo $this->config['webinfo-aboutus-title']; ?></h3>
                    <hr>
                    <p>
                        <?php echo $this->config['webinfo-aboutus-content']; ?>
                    </p>
                    <a class="custom-button scroll-to-target" href="#portfolio">案例</a>
                </div>
                <div class="col-md-12 col-lg-6 about-right-side">
                    <div class="full-image-container hovered">
                        <img class="img-fluid d-none d-md-block"
                             src="<?php echo Yii::app()->theme->baseUrl; ?>/style/img/about.jpg" alt="">
                        <div class="full-image-overlay">
                            <h3>为什么 <strong>选择我们</strong></h3>
                            <?php echo $this->config['webinfo-why-chooseus']; ?>
                        </div>
                    </div>
                </div>
            </div>
            <!-- About Content Ends -->
        </div>
        <!-- Container Ends -->
    </section>
    <!-- About Section Ends -->
    <!-- Project Manager Section Starts -->
    <section class="projectmanager" id="projectmanager">
        <!-- Section Overlay Starts -->
        <div class="section-overlay">
            <!-- Container Starts -->
            <div class="container">
                <div class="row">
                    <!-- Image Starts -->
                    <div class="col-md-12 col-lg-12 col-xl-5">
                        <img class="img-fluid projectmanagerpicture"
                             src="<?php echo Yii::app()->theme->baseUrl; ?>/style/img/road.jpg"
                             alt="project manager">
                    </div>
                    <!-- Image Ends -->
                    <!-- Details Starts -->
                    <div class="col-md-12 col-lg-12 col-xl-6 offset-xl-1">
                        <h1>发展愿景</h1>
                        <h3>优秀的开源系统</h3>
                        <p>
                            开源，免费的PHP信息发布系统，采用YII1开发，简洁，易用，容易拓展，便于二次开发。
                        </p>
                        <blockquote>
                            " RKCMS - 蓝科信息发布系统：<br>- 简单<br> - 易用<br> - 拓展性好 <br> - 优秀的开源软件系统。"
                        </blockquote>
                    </div>
                </div>
                <!-- Details Ends -->
            </div>
            <!-- Container Ends -->
        </div>
    </section>
    <!-- Project Manager Section Ends -->
    <!-- Services Section Starts -->
    <section id="services" class="services">
        <!-- Container Starts -->
        <div class="container">
            <!-- Main Heading Starts -->
            <div class="text-center top-text">
                <h1><span>软件</span> 服务</h1>
                <h4>提供的服务内容</h4>
            </div>
            <!-- Main Heading Starts -->
            <!-- Divider Starts -->
            <div class="divider text-center">
                <span class="outer-line"></span>
                <span class="fa fa-cogs" aria-hidden="true"></span>
                <span class="outer-line"></span>
            </div>
            <!-- Divider Ends -->
            <!-- Services Starts -->
            <div class="row services-box">

                <?php
                $services = Service::getServiceAll($this->connection);
                foreach ($services as $service) {
                    ?>
                    <!-- Service Item Starts -->
                    <div class="col-lg-4 col-md-6 col-sm-12 services-box-item" style="min-height: 200px;">
                        <!-- Service Item Cover Starts -->
                        <span class="services-box-item-cover <?php echo $service['icon_cls'] ?>"
                              data-headline="<?php echo $service['title'] ?>"></span>
                        <!-- Service Item Cover Ends -->
                        <!-- Service Item Content Starts -->
                        <div class="services-box-item-content <?php echo $service['icon_cls'] ?>"
                             style="min-height: 200px;">
                            <h2><?php echo $service['title'] ?></h2>
                            <p><?php echo $service['description'] ?></p>
                        </div>
                        <!-- Service Item Content Ends -->
                    </div>
                    <!-- Service Item Ends -->
                    <?php
                }
                ?>

            </div>
            <!-- Services Ends -->
        </div>
    </section>
    <!-- Services Section Ends -->
    <!-- Testimonials Section Starts -->
    <section class="testimonials">
        <div class="section-overlay">
            <!-- Container Starts -->
            <div class="container">
                <!-- Main Heading Starts -->
                <div class="text-center top-text">
                    <h1><span>我们的</span> 客户</h1>
                    <h4>客户反馈</h4>
                </div>
                <!-- Main Heading Starts -->
                <!-- Blockquotes Starts -->
                <div id="quote-carousel" class="carousel slide" data-ride="carousel">
                    <!-- Wrapper For Sliders Starts -->
                    <!-- Indicators Starts -->
                    <ol class="carousel-indicators mx-auto">
                        <?php
                        $customers = Customer::getCustomers($this->connection);
                        $i = 0;
                        foreach ($customers as $customer) {
                            ?>
                            <li data-target="#quote-carousel" data-slide-to="<?php echo $i; ?>"
                                class="<?php echo $i == 0 ? "active" : ""; ?>"></li>
                            <?php
                            $i++;
                        }
                        ?>
                    </ol>
                    <!-- Indicators Ends -->
                    <div class="carousel-inner">
                        <?php
                        $j = 0;
                        foreach ($customers as $item) {
                            ?>
                            <!-- Quote #1 Starts -->
                            <div class="carousel-item <?php echo $j == 0 ? "active" : ""; ?>">
                                <blockquote>
                                    <img style="width: 100px;height: 100px;" class="rounded-circle img-fluid"
                                         src="<?php echo $item['image_address']; ?>"
                                         alt="<?php echo $item['title']; ?>">
                                    <p><?php echo $item['content']; ?></p>
                                    <h5><?php echo $item['title']; ?></h5>
                                    <h6><?php echo $item['position']; ?></h6>
                                </blockquote>
                            </div>
                            <!-- Quote #1 Ends -->
                            <?php
                            $j++;
                        }
                        ?>


                        <!-- Quote #3 Ends -->
                    </div>
                    <!-- Wrapper For Sliders Ends -->
                </div>
                <!-- Blockquotes Ends -->
            </div>
            <!-- Container Ends -->
        </div>
    </section>
    <!-- Testimonials Section Ends -->
    <!-- Portfolio Section Starts -->
    <section id="portfolio" class="portfolio">
        <!-- Container Starts -->
        <div class="container">
            <!-- Main Heading Starts -->
            <div class="text-center top-text">
                <h1><span>我们的</span> 案例</h1>
                <h4>最近的工作</h4>
            </div>
            <!-- Main Heading Starts -->
            <!-- Divider Starts -->
            <div class="divider text-center">
                <span class="outer-line"></span>
                <span class="fa fa-image" aria-hidden="true"></span>
                <span class="outer-line"></span>
            </div>
            <!-- Divider Ends -->
            <!-- Filter Wrapper Starts -->
            <?php
            $categorys = $this->getCategorys("14,15,16,17");
            ?>
            <nav>
                <ul class="simplefilter nav nav-pills d-block">
                    <!-- Filter Wrapper Items Starts -->
                    <li class="active" data-filter="all"><i class="fa fa-reorder"></i> 所有产品</li>
                    <?php
                    foreach ($categorys as $category) {
                        ?>
                        <li data-filter="<?php echo $category['category_id']; ?>"><?php echo $category['categoryname']; ?></li>
                        <?php
                    }
                    ?>
                    <!-- Filter Wrapper Items Ends -->
                </ul>
            </nav>
            <!-- Filter Wrapper Ends -->
            <div>
                <div class="filtr-container">
                    <?php
                    $products = $this->getPostByCategorys("14,15,16,17");
                    foreach ($products as $product) {
                        ?>
                        <div class="col-12 col-sm-6 col-lg-6 col-xl-3 filtr-item"
                             data-category="<?php echo $product['post']['category_id']; ?>">
                            <div class="magnific-popup-gallery">
                                <!-- Thumbnail Starts -->
                                <figure class="thumbnail thumbnail__portfolio">
                                    <a class="image-wrap"
                                       href="<?php echo $product['meta']['imagePath']; ?>"
                                       data-gal="magnific-pop-up[image]" title="<?php echo $product['title']; ?>"><img
                                                class="img-fluid"
                                                src="<?php echo $product['meta']['imagePath']; ?>"
                                                alt="<?php echo $product['post']['title']; ?>"/><span
                                                class="zoom-icon"></span></a>
                                </figure>
                                <!-- Thumbnail Ends -->
                                <!-- Caption Starts -->
                                <div class="caption">
                                    <h3><?php echo $product['post']['title']; ?></h3>
                                    <p><?php echo $product['post']['content']; ?></p>
                                </div>
                                <!-- Caption Ends -->
                            </div>
                        </div>
                        <?php
                    }
                    ?>


                </div>
            </div>
        </div>
        <!-- Container Ends -->
    </section>
    <!-- Portfolio Section Ends -->
    <!-- Facts Section Starts -->
    <section class="facts">
        <div class="section-overlay">
            <!-- Container Starts -->
            <div class="container">
                <!-- Main Heading Starts -->
                <div class="text-center top-text">
                    <h1><span>统计</span> 数据</h1>
                    <h4>最新数据</h4>
                </div>
                <!-- Main Heading Starts -->
                <!-- Fact Badges Starts -->
                <div class="fact-badges">
                    <div class="row">
                        <!-- Fact Badge Item Starts -->
                        <div class="col-md-3 col-sm-6">
                            <i class="fa fa-files-o"></i>
                            <h2>
                                <span><strong
                                            class="badges-counter"><?php echo $this->config['statistics-rkcms-theme']; ?></strong>+</span>
                            </h2>
                            <h4>主题</h4>
                        </div>
                        <!-- Fact Badge Item Ends -->
                        <!-- Fact Badge Item Starts -->
                        <div class="col-md-3 col-sm-6">
                            <i class="fa fa-plug"></i>
                            <h2>
                                <span><strong
                                            class="badges-counter"><?php echo $this->config['statistics-rkcms-plug-num']; ?></strong>+</span>
                            </h2>
                            <h4>插件</h4>
                        </div>
                        <!-- Fact Badge Item Ends -->
                        <!-- Fact Badge Item Starts -->
                        <div class="col-md-3 col-sm-6">
                            <i class="fa fa-code"></i>
                            <h2>
                                <span><strong
                                            class="badges-counter"><?php echo $this->config['statistics-rkcms-update']; ?></strong>+</span>
                            </h2>
                            <h4>更新次数</h4>
                        </div>
                        <!-- Fact Badge Item Ends -->
                        <!-- Fact Badge Item Starts -->
                        <div class="col-md-3 col-sm-6">
                            <i class="fa fa-users"></i>
                            <h2>
                                <span><strong
                                            class="badges-counter"><?php echo $this->config['statistics-rkcms-users']; ?></strong>+</span>
                            </h2>
                            <h4>客户</h4>
                        </div>
                        <!-- Fact Badge Item Ends -->
                    </div>
                </div>
                <!-- Fact Badges Ends -->
            </div>
            <!-- Container Ends -->
        </div>
    </section>
    <!-- facts Section Ends -->
    <!-- Team Section Starts -->
    <section id="team" class="team">
        <!-- Container Starts -->
        <div class="container">
            <!-- Main Heading Starts -->
            <div class="text-center top-text">
                <h1><span>我们的</span> 团队</h1>
                <h4>保持联系</h4>
            </div>
            <!-- Main Heading Ends -->
            <!-- Divider Starts -->
            <div class="divider text-center">
                <span class="outer-line"></span>
                <span class="fa fa-users" aria-hidden="true"></span>
                <span class="outer-line"></span>
            </div>
            <!-- Divider Ends -->
            <!-- Team Members Starts -->
            <div class="row team-members magnific-popup-gallery">
                <?php
                $terms = $this->getPostByCategorys("13");
                foreach ($terms as $term) {
                    ?>
                    <!-- Team Member Starts -->
                    <div class="col-lg-3 col-md-6 col-sm-12">
                        <div class="team-member">
                            <!-- Team Member Picture Starts -->
                            <a title="<?php echo $term['post']['title']; ?>"
                               href="<?php echo $term['meta']['imagePath']; ?>"
                               data-gal="magnific-pop-up[team]" class="team-member-img-wrap"><img
                                        src="<?php echo $term['meta']['imagePath']; ?>"
                                        alt="team member"></a>
                            <!-- Team Member Picture Ends -->
                            <!-- Team Member Details Starts -->
                            <div class="team-member-caption social-icons">
                                <h4><?php echo $term['post']['title']; ?></h4>
                                <p><?php echo $term['post']['content']; ?></p>
                            </div>
                            <!-- Team Member Details Starts -->
                        </div>
                    </div>
                    <!-- Team Member Ends -->
                    <?php
                }
                ?>
            </div>
            <!-- Team Members Ends -->
        </div>
        <!-- Container Ends -->
    </section>
    <!-- Team Section Ends -->
    <!-- Newsletter Section Starts -->
    <section class="newsletter">
        <div class="section-overlay">
            <!-- Container Starts -->
            <div class="container">
                <!-- Main Heading Starts -->
                <div class="text-center top-text">
                    <h1><span>网站</span> 订阅</h1>
                    <h4>请保持联系</h4>
                </div>
                <!-- Main Heading Ends -->
                <div class="newsletter-content">
                    <p class="text-center">是否想知道最快知道蓝科CMS更新动向？<br>
                        立即订阅？</p>
                    <!-- Newsletter Form Starts -->
                    <form class="form-inputs" action="index.php?r=pluginsubscription/send" method="post">
                        <!-- Newsletter Form Input Field Starts -->
                        <div class="col-md-12 form-group custom-form-group p-0">
                                <span class="input custom-input">
									<input placeholder="请输入您的邮箱" name="email" class="input-field custom-input-field"
                                           type="text"/>
									<label class="input-label custom-input-label">
										<i class="fa fa-envelope-open-o icon icon-field"></i>
									</label>
								</span>
                        </div>
                        <!-- Newsletter Form Input Field Ends -->
                        <!-- Newsletter Form Submit Button Starts -->
                        <button id="submit" name="submit" type="button" class="custom-button" onclick="subscription()"
                                title="立即订阅">立即订阅
                        </button>
                        <!-- Newsletter Form Submit Button Ends -->
                        <script>
                            function subscription() {
                                var params = {
                                    'email': $("input[name=email]").val(),
                                    'YII_CSRF_TOKEN': '<?php echo Yii::app()->request->csrfToken; ?>'
                                };
                                $.post("plugin.php?r=subscription/send", params, function (res) {
                                    if (res.code == 10000) {
                                        alert("订阅成功");
                                    } else {
                                        alert(res.message);
                                    }
                                }, 'json');
                            }
                        </script>
                    </form>
                    <!-- Newsletter Form Ends -->
                </div>
            </div>
            <!-- Container Ends -->
        </div>
    </section>
    <!-- Newsletter Section Ends -->
    <!-- Blog Section Starts -->
    <section id="blog" class="blog">
        <!-- Container Starts -->
        <div class="container">
            <!-- Main Heading Starts -->
            <div class="text-center top-text">
                <h1><span>最新</span> 博客</h1>
                <h4>最新消息</h4>
            </div>
            <!-- Main Heading Starts -->
            <!-- Divider Starts -->
            <div class="divider text-center">
                <span class="outer-line"></span>
                <span class="fa fa-comments" aria-hidden="true"></span>
                <span class="outer-line"></span>
            </div>
            <!-- Divider Ends -->
            <!-- Latest Blog Posts Starts -->
            <div class="row blog-content">
                <?php
                $blogs = $this->getPostByCategorys("21");
                foreach ($blogs as $blog) {
                    ?>
                    <!-- Article Starts -->
                    <article class="col-lg-4 col-md-12">
                        <!-- Figure Starts -->
                        <figure class="blog-figure">
                            <a href="index.php?r=post/view&post_id=<?php echo $blog['post']['post_id']; ?>">
                                <img class="img-fluid"
                                     src="<?php echo $blog['meta']['imagePath']; ?>"
                                     alt="<?php echo $blog['post']['title']; ?>">
                            </a>
                        </figure>
                        <!-- Figure Ends -->
                        <!-- Excerpt Starts -->
                        <div class="blog-excerpt">
                            <a href="index.php?r=post/view&post_id=<?php echo $blog['post']['post_id']; ?>">
                                <h3><?php echo $blog['post']['title']; ?></h3>
                            </a>
                            <p><?php echo $this->csubstr($blog['post']['content'], 0, 50); ?></p>
                            <div class="meta">
                                <span class="date"><i
                                            class="fa fa-calendar"></i><?php echo $blog['post']['createtime']; ?></span>
                                <a class="pull-right" href="index.php?r=post/view&post_id=<?php echo $blog['post']['post_id']; ?>">详情&nbsp;&nbsp;<i
                                            class="fa fa-caret-right"></i></a>
                            </div>
                        </div>
                        <!-- Excerpt Ends -->
                    </article>
                    <!-- Article Ends -->
                    <?php
                }
                ?>
                <div class="col-lg-12">
                    <div class="mx-auto">
                        <a class="custom-button" href="index.php?r=post/list&categoryid=21">查看所有</a>
                    </div>
                </div>
            </div>
            <!-- Latest Blog Posts Ends -->
        </div>
    </section>
    <!-- Blog Section Ends -->
    <!-- Video Section Starts -->
    <section class="videopromotion">
        <div class="section-overlay">
            <!-- Container Starts -->
            <div class="container">
                <!-- Main Heading Starts -->
                <div class="text-center top-text">
                    <h1><span>公司</span> 视频</h1>
                    <h4>无锡蓝科创想科技有限公司</h4>
                </div>
                <!-- Main Heading Ends -->
                <div class="video-content">
                    <p class="text-center">蓝科CMS - 简单、快捷的信息发布系统</p>
                    <!-- Video Play Starts -->
                    <div class="magnific-popup-gallery">
                        <div class="btn-wrapper text-center"><a class="image-wrap mfp-youtube"
                                                                href="attachment/image/banner_1.jpg"></a>
                        </div>
                    </div>
                    <!-- Video Play Ends -->
                </div>
            </div>
            <!-- Container Ends -->
        </div>
    </section>
    <!-- Video Section Ends -->
    <!-- Contact Section Starts -->
    <section id="contact" class="contact">
        <!-- Container Starts -->
        <div class="container">
            <!-- Main Heading Starts -->
            <div class="text-center top-text">
                <h1><span>联系</span> 我们</h1>
                <h4>保持联系</h4>
            </div>
            <!-- Main Heading Starts -->
            <!-- Divider Starts -->
            <div class="divider text-center">
                <span class="outer-line"></span>
                <span class="fa fa-envelope" aria-hidden="true"></span>
                <span class="outer-line"></span>
            </div>
            <!-- Divider Ends -->
        </div>
        <!-- Container Ends -->
        <!-- Map Section Starts -->
        <div class="info-map">
            <div class="google-map">
                <div class="gmap_container">
                    <div id="gmap_canvas"></div>
                </div>
            </div>
            <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=<?php echo $this->config['other-baidu-map-apikey']; ?>"></script>
            <script type="text/javascript">
                // 百度地图API功能
                var map = new BMap.Map("gmap_canvas");    // 创建Map实例
                var point = new BMap.Point(120.328651,31.686101);
                map.centerAndZoom(point, 11);  // 初始化地图,设置中心点坐标和地图级别
                //添加地图类型控件
                map.addControl(new BMap.MapTypeControl({
                    mapTypes:[
                        BMAP_NORMAL_MAP,
                        BMAP_HYBRID_MAP
                    ]}));
                map.setCurrentCity("无锡");          // 设置地图显示的城市 此项是必须设置的
                map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放

                var marker = new BMap.Marker(point);  // 创建标注
                map.addOverlay(marker);               // 将标注添加到地图中
                marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画

                var label = new BMap.Label("无锡蓝科创想科技有限公司",{offset:new BMap.Size(20,-10)});
                marker.setLabel(label);
            </script>
        </div>
        <!-- Info Map Boxes Starts -->
        <div class="container">
            <div class="row info-map-boxes">
                <!-- Left Info Map Box Starts -->
                <div class="col-md-6 col-sm-12">
                    <div class="info-map-boxes-item fa fa-clock-o">
                        <h1>工作时间</h1>
                        <p>
                            <?php echo $this->config['contactinfo-working-hours'] ?>
                        </p>
                    </div>
                </div>
                <!-- Left Info Map Box Ends -->
                <!-- Right Info Map Box Starts -->
                <div class="col-md-6 col-sm-12">
                    <div class="info-map-boxes-item fa fa-phone">
                        <h1>联系方式</h1>
                        <p><?php echo $this->config['contactinfo-tel-phone-email'] ?></p>
                    </div>
                </div>
                <!-- Right Info Map Box Ends -->
            </div>
        </div>
        <!-- Info Map Boxes Ends -->
    </section>
    <!-- Contact Section Ends -->
    <!-- Contact Form Section Starts -->
    <section class="contactform">
        <div class="section-overlay">
            <div class="container">
                <!-- Main Heading Starts -->
                <div class="text-center top-text">
                    <h1><span>在线</span> 留言</h1>
                    <h4>收到留言后，我们将尽快与您联系</h4>
                </div>
                <!-- Main Heading Ends -->
                <div class="form-container">
                    <!-- Contact Form Starts -->
                    <form class="formcontact" id="formcontact" method="post" action="php/process-form.php">
                        <div class="row form-inputs">
                            <!-- First Name Field Starts -->
                            <div class="col-md-12 form-group custom-form-group">
                                    <span class="input custom-input">
										<input placeholder="姓名" class="input-field custom-input-field"
                                               id="cname" name="cname" type="text" required>
										<label class="input-label custom-input-label">
											<i class="fa fa-user icon icon-field"></i>
										</label>
									</span>
                            </div>
                            <!-- First Name Field Ends -->
                            <!-- Message Field Starts -->
                            <div class="form-group custom-form-group col-md-12">
                                <textarea placeholder="留言内容"  name="content" cols="45" rows="7"
                                          required></textarea>
                            </div>
                            <!-- Message Field Ends -->
                            <!-- Email Name Field Starts -->
                            <div class="col-md-6 form-group custom-form-group">
                                    <span class="input custom-input">
										<input placeholder="邮箱" class="input-field custom-input-field" id="email"
                                               name="email" type="text" required>
										<label class="input-label custom-input-label">
											<i class="fa fa-envelope icon icon-field"></i>
										</label>
									</span>
                            </div>
                            <!-- Email Name Field Ends -->
                            <!-- Submit Button Starts -->
                            <div class="col-md-6 submit-form">
                                <button id="form-submit" name="submit" type="button" onclick="message()" class="custom-button" title="留言">
                                    留言
                                </button>
                            </div>
                            <!-- Submit Button Ends -->
                            <!-- Form Submit Message Starts -->
                            <div class="col-sm-12 text-center output_message_holder d-none">
                                <p class="output_message"></p>
                            </div>
                            <!-- Form Submit Message Ends -->
                        </div>
                    </form>
                    <script>
                        function message() {
                            var params = {
                                'email': $("#formcontact").find("input[name=email]").val(),
                                'content': $("#formcontact").find("textarea[name=content]").val(),
                                'cname': $("#formcontact").find("input[name=cname]").val(),
                                'YII_CSRF_TOKEN': '<?php echo Yii::app()->request->csrfToken; ?>'
                            };
                            $.post("plugin.php?r=message/send", params, function (res) {
                                if (res.code == 10000) {
                                    alert("留言成功");
                                } else {
                                    alert(res.message);
                                }
                            }, 'json');
                        }
                    </script>
                    <!-- Contact Form Ends -->
                </div>
            </div>
        </div>
    </section>
    <!-- Contact Form Section Ends -->
    <!-- Logos Section Starts -->
    <section class="logos">
        <div class="container">
            <ul class="bxslider" id="bxslider">
                <!-- Logos Items Starts -->
                <?php
                $friendlinks = FriendLink::getFriendLinks($this->connection);
                foreach ($friendlinks as $friendlink) {
                    ?>
                    <li>
                        <img src="<?php echo $friendlink['imageurl']; ?>"
                             alt="<?php echo $friendlink['title']; ?>"></li>
                    <?php
                }
                ?>
                <!-- Logos Items Ends -->
            </ul>
        </div>
    </section>
    <!-- Logos Section Ends -->

    <?php
    $this->renderFile(Yii::app()->theme->viewPath . '/include/footer.php');
    ?>

    <!-- Back To Top Starts -->
    <div id="back-top-wrapper" class="d-none d-sm-block">
        <p id="back-top">
            <a href="index.php#top"><span></span></a>
        </p>
    </div>
    <!-- Back To Top Ends -->
</div>
<!-- Wrapper Ends -->

<!-- Template JS Files -->
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/jquery.easing.1.3.js"></script>
<!--<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyBpN0oc0NeZv9JolJSIzQRNW9IkUOfKrxw"></script>-->
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/bootstrap.bundle.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/jquery.bxslider.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/jquery.filterizr.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/jquery.magnific-popup.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/jquery.singlePageNav.min.js"></script>

<!-- Revolution Slider Main JS Files -->
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/jquery.themepunch.tools.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/jquery.themepunch.revolution.min.js"></script>

<!-- Revolution Slider Extensions -->

<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/extensions/revolution.extension.actions.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/extensions/revolution.extension.carousel.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/extensions/revolution.extension.kenburn.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/extensions/revolution.extension.layeranimation.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/extensions/revolution.extension.migration.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/extensions/revolution.extension.navigation.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/extensions/revolution.extension.parallax.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/extensions/revolution.extension.slideanims.min.js"></script>
<script type="text/javascript"
        src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/plugins/revolution/js/extensions/revolution.extension.video.min.js"></script>

<!-- Main JS Initialization File -->
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/style/js/custom.js"></script>

<!-- Revolution Slider Initialization Starts -->
<script type="text/javascript">
    (function () {
        "use strict";
        var tpj = jQuery;

        var revapi644;
        tpj(document).ready(function () {
            if (tpj("#rev_slider").revolution == undefined) {
                revslider_showDoubleJqueryError("#rev_slider");
            } else {
                revapi644 = tpj("#rev_slider").show().revolution({
                    sliderType: "standard",
                    dottedOverlay: "none",
                    delay: 9000,
                    navigation: {
                        keyboardNavigation: "off",
                        keyboard_direction: "horizontal",
                        mouseScrollNavigation: "off",
                        mouseScrollReverse: "default",
                        onHoverStop: "off",
                        bullets: {
                            enable: true,
                            hide_onmobile: true,
                            hide_under: 1024,
                            style: "hermes",
                            hide_onleave: false,
                            direction: "vertical",
                            container: "layergrid",
                            h_align: "right",
                            v_align: "center",
                            h_offset: 10,
                            v_offset: 0,
                            space: 5,
                            tmp: ''
                        }
                    },
                    responsiveLevels: [1240, 1024, 778, 480],
                    visibilityLevels: [1240, 1024, 778, 480],
                    gridwidth: [1240, 1024, 778, 480],
                    gridheight: [610, 620, 960, 720],
                    lazyType: "smart",
                    parallax: {
                        type: "scroll",
                        origo: "slidercenter",
                        speed: 400,
                        levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 51, 55],
                    },
                    shadow: 0,
                    spinner: "off",
                    stopLoop: "on",
                    stopAfterLoops: 0,
                    stopAtSlide: 1,
                    shuffle: "off",
                    autoHeight: "off",
                    fullScreenAutoWidth: "off",
                    fullScreenAlignForce: "off",
                    fullScreenOffsetContainer: "",
                    fullScreenOffset: "",
                    disableProgressBar: "on",
                    hideThumbsOnMobile: "off",
                    hideSliderAtLimit: 0,
                    hideCaptionAtLimit: 0,
                    hideAllCaptionAtLilmit: 0,
                    debugMode: false,
                    fallbacks: {
                        simplifyAll: "off",
                        nextSlideOnWindowFocus: "off",
                        disableFocusListener: false,
                    }
                });
            }
        });

        // GOOGLE MAP
        function init_map() {

            var myOptions = {
                scrollwheel: false,
                zoom: 12,
                center: new google.maps.LatLng(40.7127837, -74.00594130000002),
                mapTypeId: google.maps.MapTypeId.ROADMAP
            };
            var map = new google.maps.Map(document.getElementById("gmap_canvas"), myOptions);
            var marker = new google.maps.Marker({
                map: map,
                icon: "<?php echo Yii::app()->theme->baseUrl; ?>/style/img/markers/blue.png",
                position: new google.maps.LatLng(40.7127837, -74.00594130000002)
            });
            var infowindow = new google.maps.InfoWindow({
                content: "<strong>SALIMO</strong><br>1234 Disney Street, New York City<br>"
            });
            google.maps.event.addListener(marker, "click", function () {
                infowindow.open(map, marker);
            });
        }

        // google.maps.event.addDomListener(window, "load", init_map);

    })(jQuery);
</script>
<!-- Revolution Slider Initialization Ends -->
</body>